﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Project5.Models;
using Project5.DAL;

namespace Project5.Controllers
{
    public class HomeController : Controller
    {

        private ISurveyDAL surveyDAL = new SurveyDAL();
        public ActionResult Index()
        {
            ViewBag.User = User.Identity.Name;

            var model = surveyDAL.FindAllSurveys(User.Identity.Name);

            return View(model);
        }


    }
}
